﻿myApp.controller('HomeController', ['$scope', 'MuseumService', function ($scope, MuseumService) {

    $scope.greeting = "Hello webapi world w/ angular...";

    $scope.museums = [];

    MuseumService.doGetAll().then(function (data) {
        console.log(data);
        $scope.museums = data;
    })

}]);